package etc.spec.ytt.week8.home.class2;

public  abstract class Animal {
    public String name;
    public String area;
    public String food;
    public Animal(){

    }
    public Animal(String name,String area,String food){
        this.name=name;
        this.area=area;
        this.food=food;
    }

    public abstract String findFood();

    public String getFood() {
        return food;
    }

    public void setFood(String food) {
        this.food = food;
    }

    public String getName() {
        return name;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String eat(){
        return this.name+"吃"+this.food;
    }

    public abstract String wholeLife();
}
